'''
a=10
print(isinstance(a,int))  #判断类型
mystr="123213"
print(isinstance(a,str))
print(isinstance(mystr,str)) #判断类型

a=10
print(isinstance(a,(str,float))) #(str,int)两种类型其中之一
'''
class  father:
    pass

class son(father):
    pass

print(isinstance(father(),father))
print(isinstance(son(),father)) #子类属于父类， isinstance
print(type(father())==father)
print(type(son())==father) #type类型严格检查









